import request from '@/utils/request'
// 新增销售产品产品重量进位规则
export function addData(data) {
  return request({
    url: '/system/weightCarryRule/add',
    method: 'post',
    data,
  })
}
// 删除销售产品产品重量进位规则
export function delData(ids) {
  return request({
    url: `/system/weightCarryRule/remove/${ ids }`,
    method: 'delete',
  })
}
// 修改销售产品产品重量进位规则
export function editData(data) {
  return request({
    url: '/system/weightCarryRule/edit',
    method: 'put',
    data,
  })
}
// 查询销售产品产品重量进位规则列表
export function getData(data) {
  return request({
    url: '/system/weightCarryRule/list',
    method: 'post',
    data,
  })
}
// 获取产品重量进位规则详细信息
export function getDataDetailed(id) {
  return request({
    url: `/system/weightCarryRule/getInfo/${ id }`,
    method: 'get',
  })
}
